﻿using System.Web;
using System.Web.Routing;
using Fuse8.ContentManagementFramework.SystemFacade;

namespace Fuse8.ContentManagementFramework.Web.ApplicationRuntime
{
    /// <summary>
    /// Provides contract for specified URLs of custom entites
    /// </summary>
    public interface ICustomRouteService
    {
        /// <summary>
        /// Gets route data for current request
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        ICustomRouteData GetCustomRouteData(HttpContextBase context);
    }

    public class CustomDataRoute : ICustomRouteData
    {
        public int? PublicCmsPageId { get; set; }
        public object Defaults { get; set; }
        public bool UseFileCache { get; set; }
        public string Url { get; set; }
    }
}